package com.wushi.lenovo.asia5b.app_model.other;

import com.mvp.utils.StringUtils;

import java.io.Serializable;

/**
 * Created by zhangyuncai on 2019/12/20.
 */
public class PushBean implements Serializable {

    /**
     * msgid : 0
     * msgcount : 25
     */

    private String notifyId;//通知消息ID
    private String url;//跳转路由地址
    private String msgid;//消息id
    private String id;//
    private String msgcount;//
    private String smallImageUrl;
    private String bigImageUrl;
    private String title;
    private String body;
    private String extendBody;

    /**
     * 扩展内容
     *
     * @return
     */
    public String getExtendBody() {
        return extendBody;
    }

    public int getNotifyId() {
        int i = StringUtils.parseInteger(notifyId);
        if (i <= 0) {
            i = 100;
        }
        return i;
    }

    public void setNotifyId(String notifyId) {
        this.notifyId = notifyId;
    }

    public void setExtendBody(String extendBody) {
        this.extendBody = extendBody;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getSmallImageUrl() {
        return smallImageUrl;
    }

    public void setSmallImageUrl(String smallImageUrl) {
        this.smallImageUrl = smallImageUrl;
    }

    public String getBigImageUrl() {
        return bigImageUrl;
    }

    public void setBigImageUrl(String bigImageUrl) {
        this.bigImageUrl = bigImageUrl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getId() {
        try {
            return Integer.parseInt(id);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    public String getMsgid() {
        return msgid;
    }

    public String getMsgcount() {
        return msgcount;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setMsgcount(String msgcount) {
        this.msgcount = msgcount;
    }
}
